package com.weixing.mall.provider.api.service;

import com.weixing.mall.base.wrapper.Result;
import com.weixing.mall.provider.api.fallback.ActivityRpcServiceFallback;
import com.weixing.mall.provider.api.model.vo.ActRpcVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.ribbon.FeignRibbonClientAutoConfiguration;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author kfc
 * @Date 2020/1/9 15:16
 * @Version 1.0
 */
@FeignClient(value = "mall-provider-cms", configuration = FeignRibbonClientAutoConfiguration.class, fallback = ActivityRpcServiceFallback.class)
public interface ActivityRpcService {
    @GetMapping("api/act/selectById")
    Result<ActRpcVo> selectById(@RequestParam("actId") Long actId);
}
